// 登录相关接口
import axios from '@/api/request/request'

// 分页获取文物信息
const getAntiquePage = (option: any) => {
  return axios.post('/museum/antique/getAntiquePage', {
    ...option
  })
}

// 添加文物信息
const addAntique = (option: any) => {
  return axios.post('/museum/antique/addAntique', {
    ...option
  })
}

// 更新文物信息
const updateAntique = (option: any) => {
  return axios.post('/museum/antique/updateAntique', {
    ...option
  })
}

// 删除文物信息
const deleteAntique = (option: any) => {
  return axios.post('/museum/antique/deleteAntique', {
    ...option
  })
}

// 切换文物信息状态（启用或停用）
const getAntiqueInfo = (option: any) => {
  return axios.post('/museum/antique/getAntiqueInfo', {
    ...option
  })
}

// 获取详情
const changeAntiqueStatus = (option: any) => {
  return axios.post('/museum/antique/changeAntiqueStatus', {
    ...option
  })
}

export { getAntiquePage, addAntique, updateAntique, deleteAntique, getAntiqueInfo, changeAntiqueStatus }
